import request from "@/utils/request";

// 患者列表
export function patientList(data) {
  return request({
    url: "/chronicdisease/hospital/patientList",
    method: "post",
    data: data,
  });
}
// 添加患者
export function savePatient(data) {
  return request({
    url: "/chronicdisease/hospital/savePatient",
    method: "post",
    data: data,
  });
}
// 修改患者
export function updatePatientOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/updatePatientOfWeb",
    method: "post",
    data: data,
  });
}
// 删除患者
export function removePatient(data) {
  return request({
    url: "/chronicdisease/hospital/removePatient",
    method: "post",
    data: data,
  });
}
// 字典数据-血压异常标准
export function selectHighStandard(data) {
  return request({
    url: "/chronicdisease/hospital/selectHighStandard",
    method: "post",
    data: data,
  });
}
// 所有医生
export function doctorAllList(data) {
  return request({
    url: "/chronicdisease/hospital/doctorAllList",
    method: "post",
    data: data,
  });
}
// 患者测量数据列表
export function patientBloodPressureTestList(data) {
  return request({
    url: "/chronicdisease/hospital/patientBloodPressureTestList",
    method: "post",
    data: data,
  });
}
// 患者测量数据趋势图
export function patientBloodPressureTestTrendChart(data) {
  return request({
    url: "/chronicdisease/hospital/patientBloodPressureTestTrendChart",
    method: "post",
    data: data,
  });
}

// 病类下拉查询
export function listDiseaseCategoryOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/listDiseaseCategoryOfWeb",
    method: "post",
    data: data,
  });
}
// 民族下拉查询
export function listNationOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/listNationOfWeb",
    method: "post",
    data: data,
  });
}
// 身份证识别
export function discernIdCardOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/discernIdCardOfWeb",
    method: "post",
    data: data,
  });
}

// 创建患者
export function addPatientOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/addPatientOfWeb",
    method: "post",
    data: data,
  });
}
// 发送验证码
export function sendSmsCodeOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/sendSmsCodeOfWeb",
    method: "post",
    data: data,
  });
}

// 患者绑定设备列表
export function bindDeviceListOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/bindDeviceListOfWeb",
    method: "post",
    data: data,
  });
}

// 设备详情
export function getDeviceDetailByScanCodeOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/getDeviceDetailByScanCodeOfWeb",
    method: "post",
    data: data,
  });
}

// 绑定设备
export function bindDeviceOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/bindDeviceOfWeb",
    method: "post",
    data: data,
  });
}
// 换设备
export function bindDeviceChangeOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/bindDeviceChangeOfWeb",
    method: "post",
    data: data,
  });
}

// 关注/取关
export function followPatientOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/followPatientOfWeb",
    method: "post",
    data: data,
  });
}

// 更换医生-提交
export function changeDoctorOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/changeDoctorOfWeb",
    method: "post",
    data: data,
  });
}

// 亲友维护-获取关系列表
export function patientRelationList(data) {
  return request({
    url: "/chronicdisease/patient/relationList",
    method: "post",
    data: data,
  });
}

// 亲友维护-获取列表
export function listFamily(data) {
  return request({
    url: "/chronicdisease/doctor/listFamily",
    method: "post",
    data: data,
  });
}

// 亲友维护-添加和修改  存在familyId为修改
export function saveFamily(data) {
  return request({
    url: "/chronicdisease/patient/saveFamily",
    method: "post",
    data: data,
  });
}
// 亲友维护-删除
export function delFamily(data) {
  return request({
    url: "/chronicdisease/patient/delFamily",
    method: "post",
    data: data,
  });
}


